<!DOCTYPE html>
<html>
<head>
  <meta charset="utf-8">
  <title>添加</title>
  <meta name="renderer" content="webkit">
  <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
  <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
  <link rel="stylesheet" href="__LAYUI__/css/layui.css" media="all">
  <link rel="stylesheet" href="__CSS__/common/layui.form.css" media="all">
  <link rel="stylesheet" href="__STATIC__/plugs/font-awesome/css/font-awesome.min.css" media="all">
</head>
<body>
    <div class="layui-container">
        <form class="layui-form layui-clear" action="{:url('basic/danger/addChemical',array('dangerId'=>$dangerId))}" method="post" id="unitForm">
            <div class="layui-form-item">
            	  <label class="layui-form-label">化学品&nbsp;<i class="layui-icon arrow">&#xe642;</i></label>
            	  <div class="layui-input-block">
            	  	<select name="chemicalId">
            	  		<option></option>
            	  		{volist name="chemicalList" id="item"}
            	  		<option value="{$item.id}">{$item.chineseName}</option>
            	  		{/volist}
            	  	</select>
            	  </div>
            </div>
            <div class="layui-form-item">
            	 <label class="layui-form-label">存量</label>
            	 <div class="layui-input-inline">
            	 	<input class="layui-input" name="stock" data-set="stock" type="number" step="0.01" lay-verify="required" placeholder="请输入存量" />
            	 </div>
            	 <div class="layui-input-inline">
            	 		<select name="unitId">
            	  		<option></option>
            	  		{volist name="unitList" id="item"}
            	  		<option value="{$item.subsystemNo}">{$item.subsystemName}</option>
            	  		{/volist}
            	  	</select>
            	 </div>
            </div>
            <div class="layui-form-item layui-form-text">
                <label class="layui-form-label">临界值</label>
                <div class="layui-input-block">
                    <input class="layui-input" name="limit" data-set="limit" type="number" step="0.01" lay-verify="required" placeholder="临界值" />
                </div>
            </div>
            <div class="layui-form-item">
                 <div class="layui-input-block">
                      <button class="layui-btn btn-green" id="save" lay-submit lay-filter="save">保 存 </button>
                       <button class="layui-btn layui-btn-primary" type="reset">重 置</button>
                 </div>  
            </div>
        </form>
    </div>  
    <script type="text/javascript" src="__LAYUI__/layui.js"></script>
    <script type="text/javascript" src="__JS__/basic/danger.js"></script>
       

</body>
</html>           

